package com.lagou.edu.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "lagou-service-email", path = "/api/email")
public interface EmailServiceFeignClient {

    @GetMapping("/send/{to}/{subject}/{text}")
    boolean send(@PathVariable("to") String to,
                                   @PathVariable("subject") String subject,
                                   @PathVariable("text") String text);

}
